package net.pimpas.report.processor.manager;

import java.io.Serializable;
import java.util.List;

import net.pimpas.report.processor.condition.Condition;
import net.pimpas.report.processor.projection.Projection;
import net.pimpas.report.processor.tree.Tree;

public class ReportProcessorPersistence implements Serializable {

	private static final long serialVersionUID = 412355253718553459L;
	
	private Class<?> treeClass;
	private String treeName;
	private List<Condition> conditions;
	private List<Projection> projections;
	
	public ReportProcessorPersistence(Tree tree, List<Condition> conditions, List<Projection> projections) {
		this.setTreeClass(tree.getPropertyClass());
		this.setTreeName(tree.getName());
		this.setConditions(conditions);
		this.setProjections(projections);
	}
	public List<Condition> getConditions() {
		return conditions;
	}
	public void setConditions(List<Condition> conditions) {
		this.conditions = conditions;
	}
	public List<Projection> getProjections() {
		return projections;
	}
	public void setProjections(List<Projection> projections) {
		this.projections = projections;
	}
	public Class<?> getTreeClass() {
		return treeClass;
	}
	public void setTreeClass(Class<?> treeClass) {
		this.treeClass = treeClass;
	}
	public String getTreeName() {
		return treeName;
	}
	public void setTreeName(String treeName) {
		this.treeName = treeName;
	}
}